// Declare the global namespace.
var TaskManager = {}

// TaskManager._server = "http://192.168.56.102/TaskManager.Mvc/Mobile";
// TaskManager._server = "http://localhost:1037/Mobile";
TaskManager._server = "http://www.telerikmvpsamples.com/kendoui/web/taskmanagermvc/Mobile";

Date.fromRaw = function(raw) {
	return new Date(parseInt(raw.substr(6)));
}

Date.prototype.toShortDate = function() {
	return (this.getMonth() + 1) + "/" + this.getDate() + "/" + this.getFullYear();
}

Date.prototype.toRaw = function() {
	return "\/Date(" + this.valueOf() + ")\/";
}